package icom.icss.entity;

import java.util.ArrayList;
import java.util.List;

public class PageBean {
    private int currentPage;//当前页
    private int totalPage;//总页数
    private int count;//每页显示的条数
    private int totalCount;//总的数据的条数
    private List<User> userList = new ArrayList<>();//当前页的总的用户数据


    @Override
    public String toString() {
        return "PageBean{" +
                "currentPage=" + currentPage +
                ", totalPage=" + totalPage +
                ", count=" + count +
                ", totalCount=" + totalCount +
                ", userList=" + userList +
                '}';
    }

    public PageBean() {
    }

    public PageBean(int currentPage, int totalPage, int count, int totalCount, List<User> userList) {
        this.currentPage = currentPage;
        this.totalPage = totalPage;
        this.count = count;
        this.totalCount = totalCount;
        this.userList = userList;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }
}
